Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

375
Vistas
Vite Vue 3 Capacitor "Unexpected token {" error on older android device

I'm working on a cross-platform application using vue 3 + vite and ionic capacitor 3. There was a problem when testing on an old device (didn't appear when testing on a newer device; the problem may be in webview version).


A problem occurred on the device:

Android 6.0.1 | WebView 64.0.3282.137

Errors from debug:

E/Capacitor: JavaScript Error: {"type":"js.error","error":{"message":"Uncaught SyntaxError: Unexpected token {","url":"http://localhost/assets/index.e1b49e1f.js","line":1,"col":53918,"errorObject":"{}"}}
E/Capacitor/Console: File: http://localhost/ - Line 287 - Msg: SyntaxError: Unexpected token {
E/Capacitor/Console: File: http://localhost/assets/index.e1b49e1f.js - Line 1 - Msg: Uncaught SyntaxError: Unexpected token {

Problematic piece of code from index.e1b49e1f.js :

{try{e[n]=0}catch{}e.removeAttribute(n);return}}

It says that something is wrong with { right after the catch


about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Android Webview is too old

try {

} catch {}

Let's replace it with a new method:

try {

} catch (e) {}
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda